<template>
    <div>
        <div class="title">当前定位</div>
        <div class="des" @click="$emit('click')">
            <i class="fa fa-location-arrow"></i>
            <span>{{address}}</span>
        </div>
    </div>
</template>

<script>
    export default {
        name:"Location",
        props:{
            address:String
        }
    }
</script>

<style scoped>
.title{
    margin-top: 5px;
    font-size: 12px;
}
.des{
    padding: 10px 0;
}
.des i {
    color: #009eef;
}
.des span{
    color: #333;
    font-weight: bold;
    margin-left: 5px;
    display: inline-block;
    width: 90%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

</style>>

